import { _decorator, Component, Node, tween, UIOpacity, Enum, Vec3 } from 'cc';
import { MajorContent } from './dialog/MajorContent';
import { MinorContent } from './dialog/MinorContent';
import { NaratorContent } from './dialog/NaratorContent';
import { tweenConfig } from 'db://assets/scripts/enum/global'
import { Logger } from '../../utils/log';
const { ccclass, property, } = _decorator;


@ccclass('DialogFrame')
export class DialogFrame extends Component {
    @property({
        type: MajorContent,
        displayName: '主角容器',
        tooltip: '主角容器'
    })
    majorContent: MajorContent;

    @property({
        type: MinorContent,
        displayName: 'NPC容器',
        tooltip: 'NPC容器'
    })
    minorContent: MinorContent;

    @property({
        tooltip: '旁白容器',
        displayName: '旁白容器',
        type: NaratorContent,
    })
    naratorContent: NaratorContent;

    #log = new Logger(`弹窗帧${this.name}`);


    protected onLoad() {
        this.#log.debug("*加载完成*")
        this.node.active = false
    }

    protected onDestroy(): void {
        this.#log.debug('*组件销毁*')
    }

    protected onEnable(): void {
        this.#log.debug('*组件启用*')
    }

    protected onDisable(): void {
        this.#log.debug('*组件禁用*')
    }

}


